﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel
{
   public class DeviceRegisterInfo
    {
        private string shengYuID;
        /// <summary>
        /// 省域ID，标示终端安装车辆所在的省域，0 保留，由平台取默认值。省域ID采用GB/T 2260中规定的行政区划代码六位中前两位
        /// </summary>
        public string ShengYuID
        {
            get { return shengYuID; }
            set { shengYuID = value; }
        }

        private string shiXianYuID;
        /// <summary>
        /// 市县域ID，标示终端安装车辆所在的市域，0 保留，由平台取默认值。市县域ID采用GB/T 2260中规定的行政区划代码六位中后四位
        /// </summary>
        public string ShiXianYuID
        {
            get { return shiXianYuID; }
            set { shiXianYuID = value; }
        }

        private string zhiZaoShangID;
        /// <summary>
        /// 制造商ID 五个字节，终端制造商编号
        /// </summary>
        public string ZhiZaoShangID
        {
            get { return zhiZaoShangID; }
            set { zhiZaoShangID = value; }
        }

        private string devicemodelNumber;
        /// <summary>
        /// 终端型号 20个字节，此终端型号由制造商自行定义，位数不足20位的，补空格
        /// </summary>
        public string DevicemodelNumber
        {
            get { return devicemodelNumber; }
            set { devicemodelNumber = value; }
        }

        private string deviceID;
        /// <summary>
        /// 终端ID 七个字节，由大写字母和数据组成，此终端ID由制造商自行定义
        /// </summary>
        public string DeviceID
        {
            get { return deviceID; }
            set { deviceID = value; }
        }

        private int plateColor;
        /// <summary>
        /// 车牌颜色，按照JT/T 415---2006中5.4.12的规定
        /// </summary>
        public int PlateColor
        {
            get { return plateColor; }
            set { plateColor = value; }
        }

        private string plateNumber;
        //车牌，公安交通管理部门颁发的机动车号牌
        public string PlateNumber
        {
            get { return plateNumber; }
            set { plateNumber = value; }
        }

        public override string ToString()
        {
            string s = string.Empty;
            s = "省域ID：" + this.ShengYuID + " 市县域ID：" + this.ShiXianYuID
                + " 制造商ID：" + this.ZhiZaoShangID + " 终端型号：" + this.DevicemodelNumber
                + " 终端ID：" + this.DeviceID + " 车牌颜色：" + this.PlateColor
                + " 车牌：" + this.PlateNumber;

            return s;
        }
    }

}
